package com.pm2.entity.travelExpense;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

import com.pm2.entity.weekMeet.Meeting;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 费用总表
 * @author qin
 *
 */
@Entity
@Table(name="db_pm2_travel_expense")
@DynamicUpdate
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TravelExpense {
	
	// @Fields id : 项目主键
	@Id @Column(name="id")
	@GeneratedValue(strategy=GenerationType.AUTO)
	int id;	 
	
	// @Fields project_id : 项目编号
	int project_id;
	
	// @Fields expense : 费用
	float expense;
	
	// @Fields event : 事项 
	String event;
	
	int user_id;
	
	// @Fields is_grant : 是否发放
	boolean is_grant;
	
	// @Fields is_recive_check : 钱收到确认
	boolean is_recive_check;
	
	// @Fields grant_money : 发放金额
	float grant_money;
	
	// @Fields is_submit : 是否提交
	boolean is_submit;
	
	int total_invoice_numb;
	
	int total_inside_city_invoice_numb;
	
	float total_travel_carfare;
	
	float total_inside_city_carfare;
	
}
